package com.chixing.day07_abstract.homework;

public class Mainboard {
    private intelCpu cpu = new intelCpu();
    private DmengVideoCard videoCard = new DmengVideoCard();

    public void run(){
        System.out.println("CPU Running:"+cpu.cpuRunning());
        System.out.println("VideoCard Running"+videoCard.videoRunning());
    }
    public void close(){
        System.out.println("CPU Closing:"+cpu.cpuClosing());
        System.out.println("VideoCard Closing:"+videoCard.videoClosing());
    }
}
